export enum SemanticTypeEnum {
  MODEL = 'MODEL',
  DIMENSION = 'DIMENSION',
  METRIC = 'METRIC',
  VALUE = 'VALUE',
  TERM = 'TERM'
}

export const SEMANTIC_TYPE_MAP = {
  [SemanticTypeEnum.MODEL]: '数据模型',
  [SemanticTypeEnum.DIMENSION]: '维度',
  [SemanticTypeEnum.METRIC]: '指标',
  [SemanticTypeEnum.VALUE]: '维度值',
  [SemanticTypeEnum.TERM]: '术语'
}

export const SEMANTIC_TYPE_MAP_COLOR = {
  [SemanticTypeEnum.MODEL]: 'info',
  [SemanticTypeEnum.DIMENSION]: 'primary',
  [SemanticTypeEnum.METRIC]: 'success',
  [SemanticTypeEnum.VALUE]: 'warning',
  [SemanticTypeEnum.TERM]: 'danger'
}


export const SHOW_FILTER = {
  'hasCollect': '我收藏的',
  'onlyShowMe': '我创建的',
}

export const SHOW_FILTER_OPTIONS = Object.entries(SHOW_FILTER).map(([value, label]) => ({
  label,
  value
}));

interface SensitiveLevelMap {
  [key: number]: string;
}

export const SENSITIVELEVEL: SensitiveLevelMap = {
  0: '普通',
  1: '重要',
  2: '核心'
}

export const SENSITIVELEVELTagType: SensitiveLevelMap = {
  0: 'primary',
  1: 'success',
  2: 'warning'
}

export const SENSITIVELEVEL_OPTIONS = Object.entries(SENSITIVELEVEL).map(([value, label]) => ({
  label,
  value
}));
